package com.dashuaibran.joker.service.mysqlimpl;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

import com.dashuaibran.joker.dao.IUserDao;
import com.dashuaibran.joker.factory.BeanFactory;
import com.dashuaibran.joker.service.IUserService;

public class ListUserService implements IUserService {

	private String[] arr;
	private List<String> list;
	private Set<String> set;
	private Map<String, String> map;
	private Properties properties;

	public String[] getArr() {
		return arr;
	}

	public void setArr(String[] arr) {
		this.arr = arr;
	}

	public List<String> getList() {
		return list;
	}

	public void setList(List<String> list) {
		this.list = list;
	}

	public Set<String> getSet() {
		return set;
	}

	public void setSet(Set<String> set) {
		this.set = set;
	}

	public Map<String, String> getMap() {
		return map;
	}

	public void setMap(Map<String, String> map) {
		this.map = map;
	}

	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	private IUserDao userDao = (IUserDao) BeanFactory.getBean("UserDao");

	public void find() {
		// TODO Auto-generated method stub
		userDao.find();
	}

	public void printArg() {
		System.out.println(Arrays.toString(arr));
		System.out.println(list);
		System.out.println(map);
		System.out.println(set);
		System.out.println(properties + "h");
	}

}
